package com.eui.demo.logwizard
{
	import com.eui.demo.designwizard.step.KeyPointView;
	import com.eui.demo.designwizard.step.NodeClassDiagramView;
	import com.eui.demo.designwizard.step.ObjectDiagramView;
	import com.eui.demo.designwizard.step.WizardClassDiagramView;
	import com.eui.demo.logwizard.step.BacklogView;
	import com.eui.demo.logwizard.step.RequirementView;
	import com.eui.demo.logwizard.step.WorklogView;
	import com.eui.arch.util.PMContext;
	import com.eui.arch.wizard.model.WizardPM;

	import flash.utils.getQualifiedClassName;

	import mx.rpc.IResponder;

	[Bindable]
	public class LogWizardPM extends WizardPM
	{
		public static const MANAGED_PM_ID:String=getQualifiedClassName(LogWizardPM);

		public static function getInstance():LogWizardPM
		{
			return PMContext.getInstance().getPM(MANAGED_PM_ID) as LogWizardPM;
		}

		public function LogWizardPM()
		{
			super();
		}

		override public function pmId():String
		{
			return MANAGED_PM_ID;
		}

		override protected function initSteps():void
		{
			addStep("Work log", "1 Work log", null, WorklogView, false, false, false);
			addStep("Back log", "2 Back log", null, BacklogView, false, false, false);
			addStep("Requirement", "3 Requirement", null, RequirementView, false, false, false);
		}

		override public function loadWizardData(data:Object, responder:IResponder):void
		{
			responder.result(null);
		}
	}
}